/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 删除 POST /publicity/info/deleteData */
export async function publicityInfoDeleteDataUsingPost({
  body,
  options,
}: {
  body: API.PublicityInfoBoPublicityInfoDeleteData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RBoolean>('/publicity/info/deleteData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 获取 POST /publicity/info/getData */
export async function publicityInfoGetDataUsingPost({
  body,
  options,
}: {
  body: API.PublicityInfoBoPublicityInfoGetData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RPublicityInfoVo>('/publicity/info/getData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 分页查询 POST /publicity/info/pageData */
export async function publicityInfoPageDataUsingPost({
  body,
  options,
}: {
  body: API.PublicityInfoBoPublicityInfoPageData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RPageDataVoPublicityInfoVo>('/publicity/info/pageData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 添加 POST /publicity/info/saveData */
export async function publicityInfoSaveDataUsingPost({
  body,
  options,
}: {
  body: API.PublicityInfoBoPublicityInfoSaveData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RLong>('/publicity/info/saveData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 修改 POST /publicity/info/updateData */
export async function publicityInfoUpdateDataUsingPost({
  body,
  options,
}: {
  body: API.PublicityInfoBo;
  options?: { [key: string]: unknown };
}) {
  return request<API.RBoolean>('/publicity/info/updateData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
